package com.thyme.content.sentineltest;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

/**
 * @author thyme
 * @ClassName TestControllerBlockHandlerClass
 * @Description TODO
 * @Date 2019/11/12 14:38
 */
@Slf4j
public class TestControllerFallBackHandlerClass {

    public static  String fallback(String a,Throwable throwable) {

        log.warn("限流，或者降级了 fallBack" + throwable.toString());
        return "限流，或者降级 fallBack";
    }
}
